@charset 'utf-8';

@import './_reset';
@import 'common';

$border-radius: 1.3333vw;

%reuse_txt {
    color: #000000;
    font-size: 4vw;
    font-weight: 400;
    font-family: myFont;
}

%reuse_placeholder {
    font-family: myfont;
    /* placeholder颜色  */
    color: #000000;
    /* placeholder字体大小  */
    font-size: 4vw;
    /* placeholder位置  */
    text-align: right;
}

// 结算页
.con {
    padding: 13.33333vw 1.3333vw;
    margin-top: 2.6667vw;

    .order_info {
        background: #fff;
        border-radius: $border-radius;

        ul {
            padding: 0 2.6667vw;

            li {
                @include reuse-flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: .2667vw solid #f7f9fa;
                height: 13.8667vw;
                position: relative;

                span {
                    font-size: 3.7333vw;
                    font-weight: 400;
                }

                a {
                    color: #000;
                }

                .multi_border {
                    position: absolute;
                    left: 50%;
                    bottom: 0;
                    transform: translateX(-50%);
                    width: 95vw;
                    height: 1.3333vw;
                    background: repeating-linear-gradient(20deg, rgb(244, 73, 73) 4%, white 13%, gray 15%, white 22%);
                    box-sizing: border-box;
                }
            }

        }
    }

    .uesr_info {
        background: #fff;
        @include reuse-flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 2.6667vw;
        border-radius: $border-radius;
        margin: 2.6667vw 0;
        height: 10.9333vw;

        label {
            @extend %reuse_txt;
        }

        input {
            border: none;
            outline: none;
            text-align: right;
            background: transparent;
            padding: 2.6667vw;

            &::-webkit-input-placeholder {
                @extend %reuse_placeholder;
            }
        }
    }

    // 留言
    .leave_word {
        background: #fff;
        margin-bottom: 2.6667vw;
        padding: 2.6667vw;
        border-radius: $border-radius;

        .item {
            .tit {
                @extend %reuse_txt;
                padding: 2.6667vw 0;
            }

            textarea {
                width: 89.3333vw;
                height: 21.3333vw;
                border: 1px solid #767676;
                resize: none;
                padding: 1.3333vw;
                outline: none;
                box-sizing: border-box;

                &::-webkit-textarea-placeholder {
                    font-size: 3.2vw;
                    color: #757575;

                }
            }
        }

    }

    // 商品总计
    .goods_info {
        background: #fff;
        @include reuse-flex;
        border-radius: $border-radius;
        padding: 2.6667vw;
        align-items: center;
        margin-bottom: 2.6667vw;


        .goods_img {
            width: 17.3333vw;
            height: 17.3333vw;

            img {
                width: 100%;
                height: 100%;
            }
        }

        .goods_amount {
            flex: 1;
            margin-left: 2.6667vw;

            .goods_name {
                @extend %reuse_txt;
                font-size: 3.7333vw;
            }

            .goods_sum {
                @include reuse-flex;
                justify-content: space-between;
                padding-top: 1.3333vw;

                span:nth-child(1) {
                    @extend %reuse_txt;
                }

                span:nth-child(2) {
                    @extend %reuse_txt;
                    font-weight: 600;
                }
            }
        }
    }

    // 支付
    .pay_mod {
        background: #fff;
        border-radius: $border-radius;
        margin-bottom: 2.6667vw;
        padding: 2.6667vw;

        .pay_method {
            @extend %reuse_txt;
            font-size: 3.7333vw;
            padding-bottom: 2.6667vw
        }

        .chatpay,
        .alipay {
            @extend %reuse_txt;
            font-size: 3.7333vw;
            border-top: .2667vw solid #f7f9fa;
            @include reuse-flex;
            align-items: center;
            height: 8vw;
            padding: 1.8667vw 0;

            i {
                width: 8.5333vw;
                height: 8.5333vw;
                display: inline-block;
            }
        }

        .chatpay {
            i {
                background: url('../images/settle/icon-chatPay.png') no-repeat;
            }
        }

        .alipay {
            i {
                background: url('../images/settle/icon-pay.png') no-repeat;
            }
        }
    }

    // 发票
    .bill_mod {
        @include reuse-flex;
        justify-content: space-between;
        align-items: center;
        @extend %reuse_txt;
        height: 41px;
        box-sizing: border-box;
        padding: 2.6667vw;
        margin-bottom: 2.6667vw;
        background: #fff;

        a {
            color: #000;
        }
    }

    // 商品结算
    .goods_accounts {
        @include reuse-flex(row, wrap);
        align-items: center;
        justify-content: start;
        background: #fff;
        border-radius: $border-radius;
        padding: 2.6667vw;
        margin-bottom: 2.6667vw;

        .item {
            width: 50%;
            height: 8vw;
            line-height: 8vw;
            @extend %reuse_txt;
            font-size: 3.7333vw;

        }
    }
}

// 提交订单
.order_sumbit {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    @include reuse-flex;
    box-sizing: border-box;
    height: 13.33333vw;

    .order_sum,
    .sumbit {
        line-height: 13.33333vw;
        text-align: center;
    }

    .order_sum {
        flex: 1;
        color: #884e22;
        font-size: 3.7333vw;
        background: #fff;
    }

    .sumbit {
        width: 40vw;
        background: #884e22;
        color: #fff;
    }
}